﻿using System;
using System.Windows.Markup;
using Petra.Gis.Geometry.Support;
using Petra.Gis.ReferenceSystemServices;
using Petra.Gis.ReferenceSystemServices.Transformations;

namespace testSRST
{
  public class testBursaWolfTransform
  {

    public static SRSTransform CreateTransform_jtsk_wgs84()
    {

      BursaWolfGeographicTransform t = new BursaWolfGeographicTransform()
      {
        AngularParameterUnit = AngularUnit.Seconds,
        DistanceParameterUnit = DistanceUnit.Meter,
        Source = testSRSJtsk.createGeogCS_krovak(),
        Target = testSRSEquirectangularProj.createGeogCS_4326(),
        Parameters = new TransformParameters()
        {
          { "RotationX", -4.99819 },
          { "RotationY", -1.58669 },
          { "RotationZ", -5.26130 },
          { "TranslationX", 570.830 },
          { "TranslationY", 85.668 },
          { "TranslationZ", 462.843 },
          { "ScaleFactor", 3.650E-6 }
        }
      };

      return t;

    }



    public static void testMe()
    {
      BursaWolfGeographicTransform t = (BursaWolfGeographicTransform)testBursaWolfTransform.CreateTransform_jtsk_wgs84();
    }

  }
}
